<include file="header" />
<body>
<div class="wraper">
    <div class="top">
        <a href="javascript:history.go(-1);" class="iconfont icon-zuo pull-left"></a>
        <span class="pull-left">电量查询</span>
        <a href="{BEESCRM::U('base/ips/index',array('ips_id'=>$ips_id))}" class="iconfont icon-shouye pull-right text-right"></a>
    </div>
    <div class="margin-top">
        <p class="form-box">
            <select id="community">
                <option value="0">请选择所在园区</option>
	            <volist name="community" id="vo">
		            <option value="{BEESCRM:$vo.community_id}" >{BEESCRM:$vo.community_name}</option>
	            </volist>
            </select>
            <span class="triangle"></span>
        </p>
        <p class="form-box">
            <select id="building">
                <option value="0">请选择楼幢/区域</option>
            </select>
            <span class="triangle"></span>
        </p>
        <p class="form-box">
	        <select id="floor">
		        <option value="0">请选择所在厅</option>
	        </select>
	        <span class="triangle"></span>
        </p>
	    <p class="form-box">
	        <select id="room">
		        <option value="0">请选择商铺号</option>
	        </select>
	        <span class="triangle"></span>
        </p>
    </div>
    <div class="btn-box">
        <a href="javascript:void(0);" class="btn">立即查询</a>
    </div>
</div>
<include file="commonJS" />
<script src="/assets/base/common/ajaxgetroominfo2.js"></script>
<script>
	$(function(){
		ajaxgetroominfo(true,true,true);
		$('.btn').on('click',function(){
			var room = $('#room').val();

			if(room == 0 || !room){
				$.layeralert('请选择寝室');
				return false;
			}

			var str = "/room_id/"+room+"/flag/1";
			window.location.href="/base/ips/queryResult/ips_id/{BEESCRM:$ips_id}"+str;
		});
	});
</script>
</body>
</html>